package com.ohos.connect.devicecloud.iot.config;

import org.eclipse.californium.core.CoapClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * CoAP客户端配置类
 */
@Configuration
public class CoapConfig {

    /**
     * 创建CoAP客户端Bean
     *
     * @return CoapClient实例
     */
    @Bean
    public CoapClient coapClient() {
        // 这里可以配置默认的CoAP客户端设置
        return new CoapClient();
    }
}